package com.cn.ycy.dto;

import com.cn.ycy.utils.JsonLongSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import java.io.Serializable;

public class IdTooLongRes implements Serializable {

    //1 通过注解返回前端 String 类型
    //2 通过 Jackson2ObjectMapperBuilderCustomizer 配置类 强转long类型为String
//    @JsonSerialize(
//            using = JsonLongSerializer.class
//    )
    private Long id;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
}
